<template>
  <div class="form-container"> <!-- 添加类名 -->
    <el-form :inline="true"  class="demo-form-inline">
      <el-form-item label="输入要查找的公司">
        <el-input v-model="form.ownerId" placeholder="输入法人ID"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
      </el-form-item>
      <company-echo></company-echo>
    </el-form>
  </div>
</template>
<script>
import router from "@/router";

export default {
  data() {
    return {
      form: {
        ownerId: '',
      }
    }
  },
  methods: {
    onSubmit() {
      router.push({
        path: '/echo',
        query: {
          ownerId: this.form.ownerId
        }
      })
    }
  }
}
</script>

<style scoped>
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
</style>
